package array;
/**
 * 数组常见问题:空指针异常(NullPointerException)
 * null: 空常量,只能赋值给引用类型
 */
public class arraydemo7 {
    public static void main(String[] args) {
        int[] arr = new int[3];
        arr = null;
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);

    }
}
